package tragame.server.authentification;

import java.rmi.AlreadyBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

public class Authentification {
	public static void main(String[] args) {
		int port=1099;		
		try {
			Registry reg = LocateRegistry.getRegistry(port);
			
			GestionComptes gc = new GestionComptes();
			reg.bind("/GestionCompte", gc);	
			System.out.println("===========================================================");
			System.out.println("serveur pret ! ");
		} catch (RemoteException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (AlreadyBoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
